import myaxios from  '@/mytools/myaxios'
// moduleCode是参数  vModuleCode是识别方法的名字
export function VAdmminUserName(user_name) {
    return myaxios({
      
      url: 'SystemManager/AdminUserManager/VAdmminUserName',
      method: 'get',
      params: { userName: user_name },
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }


  export function SearchPage(searchModel) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/SearchPage',
      method: 'post',
      data: searchModel,
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }


  export function SearchPageTwo(searchRoles) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/RoleManager/SearchPage',
      method: 'post',
      data: searchRoles,
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }


  export function AdminUserDtoAdd(userInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/AdminUserDtoAdd',
      method: 'post',
      data: userInfo,
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }


  export function GetAdminUserPoByUserName(userName) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/GetAdminUserPoByUserName',
      method: 'get',
      params: { userName: userName },
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }


  export function AdminUserDtoUpdate(userInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: '/api/SystemManager/AdminUserManager/AdminUserDtoUpdate',
      method: 'post',
      data: userInfo,
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }


  export function AdminUserPoPwdUpdate(user_name,pwd) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/AdminUserManager/AdminUserPoPwdUpdate',
      method: 'get',
      params: { userName: user_name,pwd:pwd },
    //   mc是方法里头的参数，这个参数的值就是moduleCode，这里是赋值
    })
  }